package com.sangeng.service;

import com.sangeng.domain.ResponseResult;
import com.sangeng.dto.AddArticleDto;
import com.sangeng.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author lz
 * @since 2024-07-10
 */
public interface IArticleService extends IService<Article> {

    String test();

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    // 管理后台查询
    ResponseResult articleListAdmin(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult edit(AddArticleDto articleDto);

    ResponseResult getArticleDtoById(Long id);
}
